package cn.signalpha.modules.com.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类
 *
 * @author signalpha
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("com_withdraw")
@ApiModel(value = "Withdraw对象", description = "提现")
public class Withdraw implements Serializable {

    private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "id")
	private Long id;

	@ApiModelProperty(value = "用户id")
	private Long userId;

	@ApiModelProperty(value = "类型：1用户提现 2商户提现")
	private Integer category;

	@ApiModelProperty(value = "提现单号")
	private String orderNo;

	@ApiModelProperty(value = "外部单号")
	private String bizOrderNo;

	@ApiModelProperty(value = "提现类型：1支付宝 2微信 3银行卡")
	private Integer type;

	@ApiModelProperty(value = "0申请中 1打款中 2打款成功 3打款失败")
	private Integer status;

	@ApiModelProperty(value = "到账金额")
	private Double amount;

	@ApiModelProperty(value = "提现金额")
	private Double totalAmount;

	@ApiModelProperty(value = "扣除费用")
	private Double subAmount;

	@ApiModelProperty(value = "银行名称")
	private String bank;

	@ApiModelProperty(value = "收款姓名")
	private String realName;

	@ApiModelProperty(value = "卡号、账号")
	private String account;

	@ApiModelProperty(value = "驳回备注")
	private String remark;

	@ApiModelProperty(value = "接口内容")
	private String apiRemark;

	@ApiModelProperty(value = "申请时间")
	private Date createTime;

	@ApiModelProperty(value = "审核时间")
	private Date auditTime;

	@ApiModelProperty(value = "更新时间")
	private Date updateTime;

	@TableLogic
	@ApiModelProperty(value = "是否删除")
	private Integer isDeleted;

}
